function pay_pass(){//POST提交
    var pay_pass= $("#pay_pass").val();
    var ii = layer.load(3, {shade:[0.1,'#fff']});
    $.ajax({
        type : "POST",
        url : "Ajax.php",
        data : {
            act:'Pay_pass',
            pay_pass
        },
        dataType : 'json',
        timeout:10000,
        success : function(data) {
            layer.close(ii);
            if(data.code==200){
                layer.msg(data.msg, {
						icon: 1,
						time: 2000
						
					},function(){
				         location.reload();
				});
            }else if(data.code==1){
                layer.msg(data.msg, {
						icon: 2,
						time: 2000
				},function () {
                    window.location.href = './Api_Set';
                });
            }else{
               layer.msg(data.msg, {
						icon: 2,
						time: 1000
				}); 
            }
        },
        error:function(data){
            layer.close(ii);
            layer.msg('服务器错误');
        }
    });
}